package com.cz.crazycrp.activity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.LinearLayout;

import com.cz.crazycrp.R;
import com.cz.crazycrp.component.picBar;


public class MenuGame extends Activity {
    
    private LinearLayout linearLayout;
    private picBar myView;

	
    /**
     * Method called on application start.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.i("MenuGame","onCreate()");
        setContentView(R.layout.start_game);
        
        linearLayout = (LinearLayout)this.findViewById(R.id.linearLayout);
        myView = new picBar(this);
        linearLayout.addView(myView);    
    }

    
    protected void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
  
    }
    
    public void startGamePanel() {
    	
    }
    
    /**
     * Method called upon application closure.
     */
    @Override
    public void onStop() {
    	super.onStop();
    	finish();
    }
    
    @Override
    public void onRestart() {
    	//Log.i("MenuGame","onRestart()");
    	super.onRestart();
    	finish();
    }
    
    @Override
    public void onStart() {
    	//Log.i("MenuGame","onStart()");
    	super.onStart();
    }
    
    @Override
    public void onResume() {
    	//Log.i("MenuGame","onResume()");
    	super.onResume();
    }
    
    @Override
    public void onPause() {
    	//Log.i("MenuGame","onPause()");
    	super.onPause();
    	finish();    
    }
    
    @Override
    public void onDestroy() {
       	//Log.i("MenuGame","onDestroy()");
    	super.onDestroy();
    	finish(); 
    }
}